<!--
 * @Descripttion:
 * @Author: Silence
 * @Date: 2023-05-24 08:27:19
 * @LastEditors: Silence
 * @LastEditTime: 2023-05-24 09:14:12
-->
<template>
  <div>
    <span v-for="(item, index) in list" :key="item.id"
      >{{ index + 1 }}: {{ item.statu }}</span
    >
  </div>
</template>
<script>
export default {
  data () {
    return {
      list: [
        { id: 1, statu: '未完成' },
        { id: 2, statu: '未完成' },
        { id: 3, statu: '未完成' },
        { id: 4, statu: '未完成' },
        { id: 5, statu: '未完成' }
      ]
    }
  },
  created () {
  },
  computed: {
  },
  methods: {
  },
  mounted () {
    this.$Bus.$on('msg', (e) => {
      if (e) {
        if (e.statu) {
          this.list.find(item => item.id === e.id).statu = '回答正确'
        } else {
          this.list.find(item => item.id === e.id).statu = '回答错误'
        }
      }
    })
  },
}
</script>
<style lang='less'  scoped>
</style>
